package edu.pku.sei.transformation.qvt.adapter;

import edu.pku.sei.modeler.model.core.MetaPrimitiveType;
import edu.pku.sei.transformation.editor.model.variable.PrimitiveTypeVariable;
import edu.pku.sei.transformation.qvt.rule.IPrimitiveDomain;

public class PrimitiveDomainAdapter implements IPrimitiveDomain {
	protected PrimitiveTypeVariable element;
	public PrimitiveDomainAdapter(PrimitiveTypeVariable v) {
		this.element = v;
	}
	@Override
	public String getName() {
		return element.getName();
	}

	@Override
	public String getTypeName() {
		return ((MetaPrimitiveType)element.getType()).getName();
	}

}
